﻿namespace Sidvall.WorkItemManager.Web.Controllers.Api.V1
{
    public static partial class ControllerEventManager
    {
        public static event System.EventHandler<global::Sidvall.Business.IDataPortalContext> ExecutedDataPortalInvoke;
        public static event System.EventHandler<global::Sidvall.Business.IDataPortalContext> ExecutedDataPortalInvokeComplete;
        public static event System.EventHandler<global::Sidvall.Business.IDataPortalContext> ExecutedDataPortalException;

        #region DataPortalInvoke

        static partial void OnDataPortalInvoke(global::Sidvall.Business.IDataPortalContext context);
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "context")]
        public static void DataPortalInvoke(global::Sidvall.Business.IDataPortalContext context)
        {
            OnDataPortalInvoke(context);
            if (ExecutedDataPortalInvoke != null)
                ExecutedDataPortalInvoke.Invoke(null, context);
        }

        #endregion
        #region DataPortalInvokeComplete

        static partial void OnDataPortalInvokeComplete(global::Sidvall.Business.IDataPortalContext context);
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "context")]
        public static void DataPortalInvokeComplete(global::Sidvall.Business.IDataPortalContext context)
        {
            OnDataPortalInvokeComplete(context);
            if (ExecutedDataPortalInvokeComplete != null)
                ExecutedDataPortalInvokeComplete.Invoke(null, context);
        }

        #endregion
        #region DataPortalException

        static partial void OnDataPortalException(global::Sidvall.Business.IDataPortalContext context);
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "context")]
        public static void DataPortalException(global::Sidvall.Business.IDataPortalContext context)
        {
            OnDataPortalException(context);
            if (ExecutedDataPortalException != null)
                ExecutedDataPortalException.Invoke(null, context);
        }

        #endregion
    }
}